from django.db import models
import datetime
# Create your models here.
class User(models.Model):
    username = models.CharField(max_length=16,unique=True)
    password = models.CharField(max_length=32)
    age = models.SmallIntegerField()
    email = models.EmailField(max_length=80,null=True)
    createDatetime = models.DateTimeField(auto_now_add=datetime.datetime.now())


def build_user():
    for i in range(6):
        User.objects.create(
            username='name%s'%i,
            password='pass%s'%i,
            age = i*3,
            email = '%05d@qq.com'%i,
            createDatetime = datetime.datetime.now(),

        )